﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VitCode.Castle.Entities;
using VitCode.ObjectResolutionHelper;

namespace CRS.Core.Entities
{
    [OrMemo("货品扩展信息")]
    public class ExGoodsInfo:BaseEntity
    {
        [OrMemo("货品")]
        public virtual GoodsInfo Goods { get; set; }
        [OrMemo("零售价")]
        public virtual double Price { get; set; }
        [OrMemo("最低库存")]
        public virtual int MinAmount { get; set; }
        [OrMemo("每次默认采购量")]
        public virtual int EachBuyAmount { get; set; }
        [OrMemo("库存")]
        public virtual int Amount { get; set; }
        [OrMemo("商户")]
        public virtual ContactInfo Contact { get; set; }
        [OrMemo("创建时间")]
        public virtual DateTime CreateDate { get; set; }
        [OrMemo("是否最新")]
        public virtual bool IsLast { get; set; }

        public override System.Collections.Specialized.StringCollection GetKeyProNames()
        {
            return new System.Collections.Specialized.StringCollection {"Goods.Code", "Contact.Name"};
        }
    }
}
